import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
    routes: [
        // 一级页面
        {
            path: '/',
            redirect: '/home'
        },
        // {
        //     path: '/login',
        //     name: 'login',
        //     explain: '登录',
        //     component: () => import('./views/Login.vue')
        // },
        {
            path: '/home',
            name: 'home',
            meta: {
                explain: '首页',
                hide:true
            },
            component: () => import('./views/Home.vue')
        },
        // {
        //     path: '/transfer',
        //     name: 'transfer',
        //     explain: '调解',
        //     component: () => import('./views/Transfer.vue')
        // },
        {
            path: '/activity',
            name: 'activity',
            meta: {
                explain: '街坊新鲜事',
                hideLeftArrow: true
            },
            component: () => import('./views/Activity.vue')
        },
        {
            path: '/my',
            name: 'my',
            meta: {
                explain: '我的',
                hideLeftArrow: true
            },
            component: () => import('./views/My.vue')
        },
        // 二级页面
        {
            path: '/register',
            name: 'register',
            meta: {
                explain: '认证',
            },
            component: () => import('./views/secondPages/Register.vue')
        },
        {
            path: '/conMediation',
            name: 'conMediation',
            meta: {
                explain: '信访调解',
            },
            component: () => import('./views/secondPages/ConMediation.vue')
        },
        {
            path: '/conMediationdetail',
            name: 'conMediationdetail',
            meta: {
                explain: '山东人民调解',
            },
            component: () => import('./views/secondPages/conMediationdetail.vue')
        },
        {
            path: '/convenientService',
            name: 'convenientService',
            meta: {
                explain: '街坊一点通',
            },
            component: () => import('./views/secondPages/ConvenientService.vue')
        },
        {
            path: '/eventlist',
            name: 'eventlist',
            meta: {
                explain: '有事找格格',
            },
            component: () => import('./views/secondPages/eventlist.vue')
        },
        {
            path: '/knockOut',
            name: 'knockOut',
            meta: {
                explain: '我要报事',
            },
            component: () => import('./views/secondPages/KnockOut.vue')
        },
        {
            path: '/lattice',
            name: 'lattice',
            meta: {
                explain: '网格风采',
            },
            component: () => import('./views/secondPages/Lattice.vue')
        },
        {
            path: '/noticeList',
            name: 'noticeList',
            meta: {
                explain: '街坊公告墙',
            },
            component: () => import('./views/secondPages/NoticeList.vue')
        },
        {
            path: '/talk',
            name: 'talk',
            meta: {
                explain: '街坊新鲜事',
            },
            component: () => import('./views/secondPages/Talk.vue')
        },
        {
            path: '/ptt',
            name: 'ptt',
            meta: {
                explain: '一键通',
            },
            component: () => import('./views/secondPages/Ptt.vue')
        },
        {
            path: '/treasureChest',
            name: 'treasureChest',
            meta: {
                explain: '我要办事',
            },
            component: () => import('./views/secondPages/TreasureChest.vue')
        },
        {
            path: '/newsDet',
            name: 'newsDet',
            meta: {
                explain: '看点详情',
            },
            component: () => import('./views/secondPages/NewsDet.vue')
        },
        // 三级页面
        {
            path: '/appMediation',
            name: 'appMediation',
            meta: {
                explain: '预约调解',
            },
            component: () => import('./views/thirdPages/AppMediation.vue')
        },
        {
            path: '/legalKnowledge',
            name: 'legalKnowledge',
            meta: {
                explain: '法律知识',
            },
            component: () => import('./views/thirdPages/LegalKnowledge.vue')
        },
        {
            path: '/classicCase',
            name: 'classicCase',
            meta: {
                explain: '典型案例',
            },
            component: () => import('./views/thirdPages/ClassicCase.vue')
        },
        {
            path: '/treasureChest_1',
            name: 'treasureChest_1',
            meta: {
                explain: '老龄',
            },
            component: () => import('./views/thirdPages/TreasureChest_1.vue')
        },
        {
            path: '/treasureChest_2',
            name: 'treasureChest_2',
            meta: {
                explain: '人武部',
            },
            component: () => import('./views/thirdPages/TreasureChest_2.vue')
        },
        {
            path: '/treasureChest_3',
            name: 'treasureChest_3',
            meta: {
                explain: '计生',
            },
            component: () => import('./views/thirdPages/TreasureChest_3.vue')
        },
        {
            path: '/treasureChest_4',
            name: 'treasureChest_4',
            meta: {
                explain: '统战',
            },
            component: () => import('./views/thirdPages/TreasureChest_4.vue')
        },
        {
            path: '/treasureChest_5',
            name: 'treasureChest_5',
            meta: {
                explain: '残联',
            },
            component: () => import('./views/thirdPages/TreasureChest_5.vue')
        },
        {
            path: '/treasureChest_6',
            name: 'treasureChest_6',
            meta: {
                explain: '民政',
            },
            component: () => import('./views/thirdPages/TreasureChest_6.vue')
        },
        {
            path: '/DocumentTemplate',
            name: 'DocumentTemplate',
            meta: {
                explain: '文书范本',
            },
            component: () => import('./views/thirdPages/DocumentTemplate.vue')
        },
        {
            path: '/Document',
            name: 'Document',
            meta: {
                explain: '文书详情',
            },
            component: () => import('./views/thirdPages/Document.vue')
        },
        {
            path: '/QRCodes',
            name: 'QRCodes',
            meta: {
                explain: '就近入格',
            },
            component: () => import('./views/thirdPages/QRCodes.vue')
        },
        {
            path: '/Xiangqing',
            name: 'Xiangqing',
            meta: {
                explain: '详情',
            },
            component: () => import('./views/thirdPages/Xiangqing.vue')
        },
        {
            path: '/treasureChest_7',
            name: 'treasureChest_7',
            meta: {
                explain: '劳保',
            },
            component: () => import('./views/thirdPages/TreasureChest_7.vue')
        },
        {
            path: '/treasureChest_8',
            name: 'treasureChest_8',
            meta: {
                explain: '城管',
            },
            component: () => import('./views/thirdPages/TreasureChest_8.vue')
        },
        {
            path: '/treasureChest_9',
            name: 'treasureChest_9',
            meta: {
                explain: '环保',
            },
            component: () => import('./views/thirdPages/TreasureChest_9.vue')
        },
        {
            path: '/classification',
            name: 'classification',
            meta: {
                explain: '选择分类',
            },
            component: () => import('./views/thirdPages/Classification.vue')
        },
        {
            path: '/commonPro',
            name: 'commonPro',
            meta: {
                explain: '常见问题',
            },
            component: () => import('./views/thirdPages/CommonPro.vue')
        },
        {
            path: '/legalService',
            name: 'legalService',
            meta: {
                explain: '要购物',
            },
            component: () => import('./views/thirdPages/LegalService.vue')
        },
        {
            path: '/stylisticSer',
            name: 'stylisticSer',
            meta: {
                explain: '找美食',
            },
            component: () => import('./views/thirdPages/StylisticSer.vue')
        },
        {
            path: '/Health',
            name: 'Health',
            meta: {
                explain: '找健康',
            },
            component: () => import('./views/thirdPages/Health.vue')
        },
        {
            path: '/TelephoneBook',
            name: 'TelephoneBook',
            meta: {
                explain: '服务列表',
            },
            component: () => import('./views/thirdPages/TelephoneBook.vue')
        },
        {
            path: '/volunteerSer',
            name: 'volunteerSer',
            meta: {
                explain: '要出行',
            },
            component: () => import('./views/thirdPages/VolunteerSer.vue')
        },
        {
            path: '/propertySer',
            name: 'propertySer',
            meta: {
                // explain: '找物业',
                explain:"其他便民服务"
            },
            component: () => import('./views/thirdPages/PropertySer.vue')
        },
        {
            path: '/serviceDet',
            name: 'serviceDet',
            meta: {
                explain: '服务详情',
            },
            component: () => import('./views/thirdPages/ServiceDet.vue')
        },
        // 活动
        {
            path: '/activtyList',
            name: 'activtyList',
            meta: {
                explain: '街坊活动',
            },
            component: () => import('./views/activityModule/activtyList.vue')
        },
        {
            path: '/activityDetails',
            name: 'activityDetails',
            meta: {
                explain: '活动详情',
            },
            component: () => import('./views/activityModule/activityDetails.vue')
        },
        {
            path: '/legalAdviser',
            name: 'legalAdviser',
            meta: {
                explain: '法律顾问',
            },
            component: () => import('./views/thirdPages/LegalAdviser.vue')
        },
        {
            path: '/noticeDet',
            name: 'noticeDet',
            meta: {
                explain: '公告详情',
            },
            component: () => import('./views/thirdPages/NoticeDet.vue')
        },
        {
            path: '/noticeDet2',
            name: 'noticeDet2',
            meta: {
                explain: '投票议事',
            },
            component: () => import('./views/thirdPages/NoticeDet2.vue')
        },
        {
            path: '/rule',
            name: 'rule',
            meta: {
                explain: '积分规则',
            },
            component: () => import('./views/thirdPages/rule.vue')
        },
        {
            path: '/contradictionDet',
            name: 'contradictionDet',
            meta: {
                explain: '详情内容',
            },
            component: () => import('./views/thirdPages/ContradictionDet.vue')
        },
        // 我的
        {
            path: '/AboutUs',
            name: 'AboutUs',
            meta: {
                explain: '关于我们',
            },
            component: () => import('./views/MyModule/AboutUs.vue')
        },
        {
            path: '/feedback',
            name: 'feedback',
            meta: {
                explain: '意见反馈',
            },
            component: () => import('./views/MyModule/feedback.vue')
        },
        {
            path: '/myKnockOut',
            name: 'myKnockOut',
            meta: {
                explain: '我的事件',
            },
            component: () => import('./views/MyModule/myKnockOut.vue')
        },
        {
            path: '/myKnockOutxq',
            name: 'myKnockOutxq',
            meta: {
                explain: '我的发布详情',
            },
            component: () => import('./views/MyModule/myKnockOutxq.vue')
        },
        {
            path: '/MyActivities',
            name: 'MyActivities',
            meta: {
                explain: '我的活动',
            },
            component: () => import('./views/MyModule/MyActivities.vue')
        },
        {
            path: '/MyActivitiesxq',
            name: 'MyActivitiesxq',
            meta: {
                explain: '我的活动详情',
            },
            component: () => import('./views/MyModule/MyActivitiesxq.vue')
        },
        {
            path: '/MyAppoint',
            name: 'MyAppoint',
            meta: {
                explain: '我的预约',
            },
            component: () => import('./views/MyModule/MyAppoint.vue')
        },
        {
            path: '/MyAppointxq',
            name: 'MyAppointxq',
            meta: {
                explain: '我的预约详情',
            },
            component: () => import('./views/MyModule/MyAppointxq.vue')
        },
        {
            path: '/MyMessage',
            name: 'MyMessage',
            meta: {
                explain: '我的信息',
            },
            component: () => import('./views/MyModule/MyMessage.vue')
        },

        {
            path: '/integralManage',
            name: 'integralManage',
            meta: {
                explain: '积分管理办法',
            },
            component: () => import('./views/MyModule/integralManage.vue')
        },
        {
            path: '/communityCard',
            name: 'communityCard',
            meta: {
                explain: '我的社区卡',
            },
            component: () => import('./views/MyModule/communityCard.vue')
        },
        {
            path: '/integralRanking',
            name: 'integralRanking',
            meta: {
                explain: '积分排行',
            },
            component: () => import('./views/MyModule/integralRanking.vue')
        },
        {
            path: '/TdMapSelectPoint',
            name: 'TdMapSelectPoint',
            meta: {
                explain: '地图选择',
            },
            component: () => import('./views/TdMapSelectPoint.vue')
        },   
    ]
})